package com.bushro.listener;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

public class ActListener implements TaskListener {
    @Override
    public void notify(DelegateTask delegateTask) {
        System.out.println(delegateTask.getEventName());
        String userIds = (String) delegateTask.getVariable("userIds");
        delegateTask.addCandidateUser(userIds);
    }
}
